<div id="line" style="width: 500px; height: 500px"></div>
<script type="text/javascript">
  var myChart = echarts.init(document.getElementById('line'));
  var option = {
    title: {
      text: "崩溃率趋势"
    },
    toolbox: {
      feature: {
        saveAsImage: {}
      }
    },
    xAxis: {
      type: 'category',
      data:  <%= raw @versions.map(&:version) %>
    },
    yAxis: {
      type: 'value'
    },
    series: [{
      data: <%= raw @versions.map(&:crash_rate) %>,
      type:'line'
    }]
  };
  myChart.setOption(option);
</script>